home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / patch / version.c < prev    next >
C/C++ Source or Header  |  1994-08-01  |  534b  |  31 lines

  1. /* $Header: version.c,v 2.0 86/09/17 15:40:11 lwall Exp $
  2.  *
  3.  * $Log:    version.c,v $
  4.  * Revision 2.0  86/09/17  15:40:11  lwall
  5.  * Baseline for netwide release.
  6.  * 
  7.  */
  8.  
  9. #include "EXTERN.h"
  10. #include "common.h"
  11. #include "util.h"
  12. #include "INTERN.h"
  13. #include "patchlevel.h"
  14. #include "version.h"
  15.  
  16. /* Print out the version number and die. */
  17.  
  18. void
  19. version()
  20. {
  21.     void my_exit();
  22.     extern char rcsid[];
  23.  
  24. #ifdef lint
  25.     rcsid[0] = rcsid[0];
  26. #else
  27.     fprintf(stderr, "%s\nPatch level: %s\n", rcsid, PATCHLEVEL);
  28.     my_exit(0);
  29. #endif
  30. }
  31.